package com.tencent.sr.iris.activity.common.enums;

import com.tencent.sr.rmall.common.exception.code.ErrorCode;

public enum IrisErrorCode implements ErrorCode {
    THIRD_CALL_EXCEPTION("THIRD_CALL_EXCEPTION", "三方调用异常"),
    USER_WX_SESSIONKEY_EXPIRE("USER_WX_SESSIONKEY_EXPIRE", "微信登录态过期"),
    USER_ORGAN_SAVE_ERROR("USER_ORGAN_SAVE_ERROR", "组织保存失败"),
    USER_ORGAN_QUERY_ERROR("USER_ORGAN_QUERY_ERROR", "组织查询失败"),
    USER_ORGAN_UPDATE_ERROR("USER_ORGAN_UPDATE_ERROR", "组织更新失败"),
    USER_GROUP_UPDATE_ERROR("USER_GROUP_UPDATE_ERROR", "用户组织更新失败"),
    USER_ORGAN_NAME_REPEAT("USER_ORGAN_NAME_REPEAT", "组织名重复"),
    USER_TYPE_LEVEL_ERROR("USER_TYPE_LEVEL_ERROR", "用户身份不合法"),
    USER_ORGAN_DELETE_ERROR("USER_ORGAN_DELETE_ERROR", "组织删除失败"),
    NOT_ALLOW_ADD_CHILD_NODE("NOT_ALLOW_ADD_CHILD_NODE", "不允许增加子节点"),
    NOT_ALLOW_DELETE_NODE("NOT_ALLOW_DELETE_NODE", "不允许删除该节点"),
    EXIST_USER_DELETE_NODE_ERROR("EXIST_USER_DELETE_NODE_ERROR", "组织内仍有用户，请移除后再删除"),
    USER_ORGAN_GEY_BY_ORGANCODE_ERROR("USER_ORGAN_GEY_BY_ORGANCODE_ERROR", "店铺与企业微信绑定关系查询失败"),
    USER_QUERY_ORGAN_LIST_ERROR("USER_QUERY_ORGAN_LIST_ERROR", "行政组织架构查询接口查询失败"),
    USER_NORMAL_OAUTH_BIND_ERROR("USER_NORMAL_OAUTH_BIND_ERROR", "企业微信一方绑定失败"),
    USER_QUERY_QYWX_STORES_ERROR("USER_QUERY_QYWX_STORES_ERROR", "企微部门列表查询失败"),
    USER_QUERY_ORGAN_USERS_ERROR("USER_QUERY_ORGAN_USERS_ERROR", "行政组织与员工关系查询失败"),
    REQUEST_QUFA_FAIL("REQUEST_QUFA_FAIL", "请求区发错误"),
    REQUEST_QUFA_FAIL_UN_RETRY("REQUEST_QUFA_FAIL_UN_RETRY", "请求区发发奖错误-不需要重试"),
    GET_PRIVATE_TMP_DOWNLOAD_URL_FAIL("GET_PRIVATE_TMP_DOWNLOAD_URL_FAIL", "获取临时下载路经失败"),
    QUERY_SUBSCRIBE_INFO_FAIL("QUERY_SUBSCRIBE_INFO_FAIL", "查询消息订阅信息失败"),
    USER_NOT_IN_WHITE_LIST("USER_NOT_IN_WHITE_LIST", "用户不在白名单"),
    ORGAN_PARAM_ERR("ORGAN_PARAM_ERR", "组织参数错误"),
    PARAM_ERROR("PARAM_ERROR", "参数错误"),

    OPERATE_FAIL("OPERATE_FAIL", "操作失败，请重试"),

    DATA_NOT_EXIST("DATA_NOT_EXIST", "查询不到相关数据"),
    QUERY_QUFA_FAIL("QUERY_QUFA_FAIL", "请求区发错误"),

    AWARD_MONITOR_NOT_RECORD("AWARD_MONITOR_NOT_RECORD", "查询不到发奖信息对应的任务信息"),

    AWARD_MONITOR_RECORD_NOT_FINISH("AWARD_MONITOR_RECORD_NOT_FINISH", "已发奖的任务状态不为已完成"),

    ACTIVITY_LIMIT_CONFIG_DATE_ERROR("ACTIVITY_LIMIT_CONFIG_DATE_ERROR", "只能创建修改当前月份或者以后月份的配置"),

    USER_NOT_EXIST("USER_NOT_EXIST", "用户不存在"),

    LIMIT_LESS_THAN_CONTRIBUTED("LIMIT_GREATER_THAN_CONTRIBUTED", "限额不能小于已贡献数"),

    NEW_INVITE_DATA_TIME_NULL("NEW_INVITE_DATA_TIME_NULL", "新版本数据需传入时间段"),

    ;
    private String code;
    private String description;

    IrisErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return this.name();
    }

    public String getDescription() {
        return this.description;
    }
}
